package org.nobody.mallb2c.mallcart.feign;

import org.nobody.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 3489309323@qq.com
 * @create 2020-09-19-20:44
 */
@FeignClient("mall-product")
public interface ProductFeignService {
  @RequestMapping("/mallproduct/skuinfo/info/{skuId}")
  public R getSkuInfo(@PathVariable("skuId") Long skuId);

  @GetMapping("/mallproduct/skusaleattrvalue/stringlist/{skuId}")
  public List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);

  @GetMapping("/mallproduct/skuinfo/{skuId}/price")
  public R getPrice(@PathVariable("skuId") Long skuId);
}
